package com.thinkgem.jeesite.modules.book.entity;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.utils.StringUtils;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

/**
 * Created by John on 2016/1/19.
 */
public class GeneralLedger extends DataEntity<GeneralLedger>{
    private String num;
    private String classcode;
    private String className;
    private String banid;
    private String count;
    private String amount;
    private String total;
    public GeneralLedger(){}
    public GeneralLedger(BkBookstore bookstore){
    }

    @ExcelField(title = "序号", type = 0, align = 2, sort = 1)
    public String getNum(){
        return num;
    }

    @ExcelField(title = "索书号", type = 0, align = 2, sort = 2)
    public String getClasscodeAndName(){
        if(StringUtils.isNotEmpty(classcode) && StringUtils.isNotEmpty(className)){
            return classcode + "|" + className;
        }
        return "";
    }

    public String getClasscode(){
      return classcode;
    }

    public String getClassName(){
        return className;
    }

    public String getBanid(){
        return banid;
    }

    @ExcelField(title = "种数", type = 0, align = 2, sort = 3)
    public String getCount(){
        return count;
    }

    @ExcelField(title = "册数", type = 0, align = 2, sort = 4)
    public String getAmount(){
        return amount;
    }

    @ExcelField(title = "单价和", type = 0, align = 2, sort = 5)
    public String getTotal(){
        return total;
    }

    public void setNum(String num){
        this.num = num;
    }

    public void setClasscode(String classcode){
        this.classcode = classcode;
    }

    public void setClassName(String className){
        this.className = className;
    }

    public void setBanid(String banid){
        this.banid = banid;
    }

    public void setCount(String count){
        this.count = count;
    }

    public void setAmount(String amount){
        this.amount = amount;
    }

    public void setTotal(String total){
        this.total = total;
    }
}
